import { maxPrefix } from '@/consts/consts'

export default ({ $service:request, $dowloadService: dowloadService }) => ({
  // 5.1.2、获取网关配置信息
  hubDetail(params) {
    return request({
      url: `${maxPrefix}/api/v2/hub/detail`,
      method: 'get',
      params
    })
  },

  // 5.1.3、获取网关监控信息
  hubRunning(params) {
    return request({
      url: `${maxPrefix}/api/v1/hub/running`,
      method: 'get',
      params
    })
  },
})
